package com.bosssoft.trainee.mbg.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * @Author: wuxin
 * @Date: 2022/6/12
 * @Project rbac
 * @Version 1.0
 * @Description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "r_resource",autoResultMap = true)
public class Resource {
    @TableId(value = "r_id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "r_name")
    private String name;
    @TableField(value = "r_url")
    private String url;
    @TableField(value = "r_api")
    private String api;
    @TableField(value = "r_code")
    private String code;
    @TableField(value = "r_method")
    private String method;
    @TableField(value = "r_open_icon")
    private String openIcon;
    @TableField(value = "r_close_icon")
    private String closeIcon;
    @TableField(value = "r_parent_id")
    private Integer parentId;
    @TableField(value = "r_state")
    private Integer state;
    @TableField(value = "r_update_time",fill = FieldFill.INSERT_UPDATE)
    @Version
    private Date updateTime;
}
